Skip to content

Conversation

@artembilan
Copy link
Member

@artembilan artembilan commented Mar 29, 2019

Fixes #2868

  • Check if redis_version property is returned from the info
    before parsing

Cherry-pick to 5.1.x

Fixes spring-projects#2868

* Check if `redis_version` property is returned from the `info`
before parsing

**Cherry-pick to 5.1.x**
return majorVersion >= 4;
}
else {
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should fall back to a spring.integration.properties?

Clearly, their version supports the operation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh? What is the difference between spring.integration.properties or redis_version property?
Technically they are the same, only the problem that you abusing a system renaming such an important property.
I mean the same way you definitely can change the property in the spring.integration.properties file and also may break the system

Our goal here is to use faster delete on Redis, if it is not available by some reason we fall back to the regular blocking delete.
So, if you rename redis_version, you just make your own life harder 😄

That's why I'd stay with the false as a fallback.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK; makes sense; thanks.

@garyrussell garyrussell merged commit d944752 into spring-projects:master Mar 29, 2019
@garyrussell
Copy link
Contributor

Cherry-picked to 5.1.x as 659613c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants